package com.un10.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.un10.entity.Paytable;
import com.un10.mapper.PaytableMapper;
import com.un10.service.PaytableService;

@Service
public class PaytableServiceImpl implements PaytableService {

	@Autowired
	private PaytableMapper paytableMapper;
	
	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return paytableMapper.getCount();
	}

	@Override
	public List<Paytable> findAllPaytable(int page, int limit, String payMethod) {
		// TODO Auto-generated method stub
		return paytableMapper.getAllPaytable(page, limit, payMethod);
	}

	@Override
	public Integer findPaytableAdd(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return paytableMapper.PaytableAdd(map);
	}

	@Override
	public Integer findPaytableUpdate(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return paytableMapper.PaytableUpdate(map);
	}

	@Override
	public Integer findPaytableDelete(int payID) {
		// TODO Auto-generated method stub
		return paytableMapper.PaytableDelete(payID);
	}
	

}
